package com.itheima.d19_extends_demo2;

public class Manager extends People{
        private int bonus;
    public Manager(){}
    public Manager(String name,String numble,int salary,int bonus){
        super(name, numble, salary);
        this.bonus = bonus;
    }
    @Override
    public void work() {
        System.out.println("工号为" + getNumble() + "的" + getName() + "的项目经理，拿着" + getSalary() + "元的工资和" + bonus + "的奖金，正盯着程序员写代码！！！");
    }
}
